package com.dsiab.portalService.controller;

import com.dsiab.portalService.common.ResponseMap;
import com.dsiab.portalService.service.NavigationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/nav")
public class NavigationController {

  @Autowired
  NavigationService navigationService;

  @GetMapping("/getList")
  public ResponseMap getList() {
    // 按分类查询导航
    return ResponseMap.success(navigationService.getAll());
  }

}
